<!DOCTYPE html>
<html>
	<head th:replace="/mobile/common::head(~{::custom_settings})">
		<th:block th:fragment="custom_settings">
			<title>顺山科技智慧生活服务平台</title>
			<link type="text/css" rel="stylesheet" th:href="@{{css}/mobile/merchant/merchantitem/merchantitem.css(css=${css})}"/>
		</th:block>
	</head>
	<body>
		<div class="weui-tab__bd-item">
	      <div class="weui-cell weui-cell_select">
	        <ul>
	        	<li><a href="javascript:instance.showSelect('group');" ><em style="font-style:normal" id="pidGroup">全部分类</em><i class="fa fa-caret-down"></i><input type="hidden" id="pidGroupVal" value="all"/></a>
	        		<ul class="erji" id="group">
	        			<li><a href="javascript:instance.onSearchGroup('all');">全部分类</a></li>
	        			<th:block th:each="gg, i : ${select.goodGroupList}">
	        				<li><a th:href="'javascript:instance.onSearchGroup(\'' + ${gg.groupid} + '\');'" th:text="${gg.groupname}" th:id="${gg.groupid}"></a></li>
	        			</th:block>
	        			<!-- <li><a href="javascript:void(0);">蔬菜类</a></li>
	        			<li><a href="javascript:void(0);">肉类</a></li>
	        			<li><a href="javascript:void(0);">瓜类</a></li> -->
	        		</ul>
	        	</li>
		        <li><a href="javascript:instance.showSelect('market');"><em style="font-style:normal" id="pidMarket">全部市场</em><i class="fa fa-caret-down"></i><input type="hidden" id="pidMarketVal" value="all"/></a>
		        	<ul class="erji" id="market">
	        			<li><a href="javascript:instance.onSearchMarket('all');">全部市场</a></li>
	        			<th:block th:each="m, i : ${select.marketList}">
	        				<li><a th:href="'javascript:instance.onSearchMarket(\'' + ${m.marketid} + '\');'" th:text="${m.marketname}" th:id="${m.marketid}"></a></li>
	        			</th:block>
	        			<!-- <li><a href="javascript:void(0);">九龙坡区-石桥铺</a></li>
	        			<li><a href="javascript:void(0);">渝中区-大坪</a></li>
	        			<li><a href="javascript:void(0);">沙坪坝区-沙坪坝</a></li> -->
	        		</ul>
		        </li>
		        <li><a href="javascript:instance.showSelect('goodstate');"><em style="font-style:normal" id="pidState">全部</em><i class="fa fa-caret-down"></i><input type="hidden" id="pidStateVal" value="all"/></a>
		        	<ul class="erji" id="goodstate">
	        			<li><a href="javascript:instance.onSearchIstate('all');">全部</a></li>
	        			<li><a href="javascript:instance.onSearchIstate('4');" id="istate_4">在售</a></li>
	        			<li><a href="javascript:instance.onSearchIstate('1');" id="istate_1">停售</a></li>
	        		</ul>
		        </li>
	        </ul>
	      </div>
	      <div class="weui-user-list" id="goodMgr_List">
	      	<th:block th:fragment="goodMgr_List" th:if="${goodMgr!=null}">
		      	<th:block th:each="good, i : ${goodMgr.goodsMgrList}">
			      	<div class="weui-cell">
					    <div class="weui-cell__hd">
					    	<img th:src="${good.photopath}" />
					    	<th:block th:if="${good.salestate eq 1}"><span>停售</span></th:block>
					    	<th:block th:if="${good.salestate eq 4}"><span class="weui-cell-zs">在售</span></th:block>
					    </div>
					    <div class="weui-cell__bd">
					    	<p class="cell-title" th:text="${good.goodname}"></p>
					    	<p class="cell-pice" th:text="${good.specdefine} + '/' + ${good.meterunit}"></p>
					    	<p class="cell-monly">￥<em style="font-style:normal" th:text="${good.goodprice}" th:id="'goodprice_' + ${good.saleid}"></em></p>
					        <p class="cell-user-adds">库存：<em style="font-style:normal" th:text="${good.goodstock}" th:id="'goodstock_' + ${good.saleid}"></em><span>市场：<em style="font-style:normal" th:text="${good.marketname}"></em></span></p>
					    </div>
					    <div class="weui-cell__ft weui-ellipsis" th:onclick="'javascript:instance.evenMore(\'' + ${good.saleid} + '\');'"><i class="fa fa-ellipsis-h"></i>
					    	<div class="weui-cmtbox" th:id="${good.saleid}">
					    		<a th:href="'javascript:instance.popupInventory(\'' + ${good.saleid} + '\');'"><i class="fa fa-archive"></i>库存</a>
					    		<a th:href="'javascript:instance.popupPricing(\'' + ${good.saleid} + '\');'"><i class="fa fa-gg"></i>调价</a>
					    		<a th:href="'javascript:instance.executeModifyGoodsaleState(\'' + ${good.saleid} + '\');'"><i class="fa fa-shopping-basket"></i><em style="font-style:normal" th:text="${good.salestate eq 4} ? '停售' : '在售'"></em></a>
					    		<input type="hidden" th:id="'salestate_' + ${good.saleid}" th:value="${good.salestate}"/>
					    	</div>
					    </div>
					  </div>
		      	</th:block>
	      	</th:block>
	      	
	      	 <!-- <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /><span>停售</span></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i>
			    	<div class="weui-cmtbox">
			    		<a id="weui-cmtbox-stok" href="javascript:void(0);"><i class="fa fa-archive"></i>库存</a>
			    		<a id="weui-readjust-prices" href="javascript:void(0);"><i class="fa fa-gg"></i>调价</a>
			    		<a href="javascript:void(0);"><i class="fa fa-shopping-basket"></i>上架/下架</a>
			    	</div>
			    </div>
			  </div>
			  <!-- <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/lb.png(image=${image})}" /><span class="weui-cell-zs">在售</span></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/fq.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：渝中区大坪</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/td.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/yc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：沙坪坝区沙坪坝</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div>
			  <div class="weui-cell">
			    <div class="weui-cell__hd"><img th:src="@{{image}/mobile/member/bc.png(image=${image})}" /></div>
			    <div class="weui-cell__bd">
			    	<p class="cell-title">白菜</p>
			    	<p class="cell-pice">约1.2kg/份</p>
			    	<p class="cell-monly">￥5.70</p>
			        <p class="cell-user-adds">库存：<em>500</em><span>市场：九龙坡区石桥铺</span></p>
			    </div>
			    <div class="weui-cell__ft weui-ellipsis"><i class="fa fa-ellipsis-h"></i></div>
			  </div> -->
			  
	      </div>
		</div>
	<script type="text/javascript" th:src="@{{js}/mobile/merchant/merchantitem/merchantitem.js(js=${js})}"></script>
	</body>
</html>